package user;

import book.Book;
import book.BookList;
import operation.Ioperation;

public abstract class User {
    private String name;
    protected Ioperation[] ioperation;//类似于protected int[] a


    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void doIoperation(int choice, BookList bookList){
        this.ioperation[choice].work(bookList);
    }
}
